/****************************************************
          File Name:time.c
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Mon 11 Aug 2014 09:50:31 AM CST
*****************************************************/

#include<stdio.h>
#include<time.h>

int main()
{
    time_t t, curtime;
    char *date;
    
    curtime=time(&t);
    date=ctime(&curtime);
    printf("the time is %s",date);
    return 0;
}

